package com.cjh.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultMap <T> {

	private int code;

    private String msg;
    
    private T data;
    
    private int count;

	public ResultMap(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public ResultMap(int code, String msg, T data) {
		this.code = code;
		this.msg = msg;
		this.data = data;
	}

}